<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>考神驾到手机科目一模拟考试</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<link rel="stylesheet" type="text/css" href="css/public.css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/windowsheight.js"></script>

<%--    <link rel="stylesheet" href="${pageContext.request.contextPath}/manager_page/layui/css/layui.css" media="all">--%>
    <script src="${pageContext.request.contextPath}/manager_page/layui/layui.js"></script>

</head>

<body>

<input type="hidden" id="question_class_hide" value=${param.question_class} >

<!-----------头部开始--------------->
<%@ include file="page_head.jsp"%>
<!-----------头部结束--------------->



<!-----------内容开始--------------->
 <div class="content">
   <ul class="relat_biaoshi_ul test_onelist">
      <li>
        <a class="testcaraclick" href="#" tip="#xiaoche">小车</a>
      </li>
      <li>
        <a href="#" tip="#huoche">货车</a>
      </li>
      <li>
        <a href="#" tip="#keche">客车</a>
      </li>
      <li>
        <a href="#" tip="#motoche">摩托车</a>
      </li>
      <div class="clear"></div>
   </ul>
   <div class="tab_change">
       <div id="xiaoche">
       <ul class="baodian testsort">
           <li>
             <a href="javascript:to_chapter_exercise();">章节练习</a>
           </li>
            <li>
             <a href="javascript:to_shunxu_test();">顺序练习</a>
           </li>
            <li>
             <a href="javascript:to_rand_test();">随机练习</a>
           </li>
            <li>
             <a href="javascript:to_special_exercise();">专项练习</a>
           </li>
           <div class="clear"></div>
       </ul>
       <div class="test_realbutton"><a href="javascript:to_real_test();"><span>仿真模拟考试</span></a></div>
       <div class="newdetailcon">
         <div class="biaoti"><img src="images/libg_06.jpg"><span>我的做题分析</span></div>
       </div>
         <ul class="biaoshi_ul errors">
          <li>
            <a href="javascript:to_did_class('错题');">我的错题</a>
          </li>
          <li>
            <a href="javascript:to_grade_rank();">成绩排行</a>
          </li>

          <li>
            <a href="javascript:to_mygrade();">我的成绩</a>
          </li>
          <li>
            <a href="javascript:to_test_tongji();">试题统计</a>
          </li>
          <div class="clear"></div>
         </ul>
         
        <div class="newdetailcon">
         <div class="biaoti"><img src="images/libg_06.jpg"><span>其它</span></div>
       </div>
         <ul class="biaoshi_ul errors">
          <li>
            <a href="jiaotong_biaoshi.jsp">交通标志</a>
          </li>
          <li>
            <a href="javascript:to_did_class('收藏');">我的收藏</a>
          </li>
          <li>
            <a href="info.jsp">驾考资讯</a>
          </li>
          <div class="clear"></div>
         </ul>
       </div>
   </div>
 </div>
 <!-----------内容结束--------------->
 <div class="footer">
   <p>©考神驾到版权所有</p>
   <span>www.kaoshenjiadao.com</span>
 </div>





 
</body>

<!--头部高度赋给列表的topjs-->

<script>
    var layer;
    layui.use('layer',function(){
        layer=layui.layer;
    })

    window.onload=function(){
        var question_class=$("#question_class_hide").val();
        if(question_class=="科一") {
            $("#page_head_title").text("科目一试题练习");
        }else{
            $("#page_head_title").text("科目四试题练习");
        }
    }

    function to_shunxu_test(){
        var question_class_hide=$("#question_class_hide").val();
        $.ajax({
            url:"${pageContext.request.contextPath}/front_other/check_login.do",
            success:function(data,status){
                if(status=="success"){
                    if(data==0)
                        layer.alert("为保存您的做题记录，请您先登录");
                    else
                        window.location.href="chaptertest.jsp?question_class_hide="+question_class_hide+"&question_chapter_hide="+"";
                }
            }
        })
    }

    function to_rand_test(){
        var question_class_hide=$("#question_class_hide").val();
        $.ajax({
            url:"${pageContext.request.contextPath}/front_other/check_login.do",
            success:function(data,status){
                if(status=="success"){
                    if(data==0)
                        layer.alert("为保存您的做题记录，请您先登录");
                    else
                        window.location.href="chaptertest.jsp?question_class_hide="+question_class_hide+"&question_chapter_hide="+""
                        +"&rand_flag="+"yes";
                }
            }
        })
    }

    function to_chapter_exercise(){
        var question_class_hide=$("#question_class_hide").val();
        window.location.href="Chapter_exercise.jsp?question_class_hide="+question_class_hide;
    }

    function to_special_exercise(){
        var question_class_hide=$("#question_class_hide").val();
        window.location.href="Special_exercise.jsp?question_class_hide="+question_class_hide;
    }

    function to_real_test(){
        var question_class_hide=$("#question_class_hide").val();
        window.location.href="kemu1_test_beginscreen.jsp?question_class_hide="+question_class_hide;
    }
    function to_did_class(did_class_hidden){
        $.ajax({
            url:"${pageContext.request.contextPath}/front_other/check_login.do",
            success:function(data,status){
                if(status=="success"){
                    if(data==0)
                        layer.alert("您需要先登录");
                    else
                        window.location.href="myerrors.jsp?did_class_hidden="+did_class_hidden;
                }
            }
        })
    }
    function to_test_tongji(){
        $.ajax({
            url:"${pageContext.request.contextPath}/front_other/check_login.do",
            success:function(data,status){
                if(status=="success"){
                    if(data==0)
                        layer.alert("您需要先登录");
                    else
                        window.location.href="test_tongji.jsp";
                }
            }
        })
    }
    function to_mygrade(){
        $.ajax({
            url:"${pageContext.request.contextPath}/front_other/check_login.do",
            success:function(data,status){
                if(status=="success"){
                    if(data==0)
                        layer.alert("您需要先登录");
                    else
                        window.location.href="mygrade.jsp";
                }
            }
        })
    }
    function to_grade_rank(){
        $.ajax({
            url:"${pageContext.request.contextPath}/front_other/check_login.do",
            success:function(data,status){
                if(status=="success"){
                    if(data==0)
                        layer.alert("您需要先登录");
                    else
                        window.location.href="grade_rank.jsp";
                }
            }
        })
    }
</script>











<script>
   var heighttop=$(".top").height();
   $(".topmenu").css("top",heighttop);
    $(".menumore").toggle(function(){
	     $(".topmenu").show(); 
	   },function(){
	     $(".topmenu").hide(); 
	 	   })
   $(".buttontop").click(function(){
	     $(".topmenu").hide();  
	   })
	   
 $(function(){
	 $(".tasecartop span a").click(function(){
		  var $banktip=$(this).attr("tip");
		  $($banktip).show().siblings().hide();
		  $(".tasecartop span a").removeClass("payaclik");
		  $(this).addClass("payaclik");
		 })
	
	})
	/*模拟考试列表分类车型选择tab切换*/
 $(function(){
	 $(".test_onelist li a").click(function(){
		  var $banktip=$(this).attr("tip");
		  $($banktip).show().siblings().hide();
		  $(".test_onelist li a").removeClass("testcaraclick");
		  $(this).addClass("testcaraclick");
		 })
	
	})
	
 </script>
 
<!--头部高度赋给列表的topjs-->
<!--banner将图片的高度赋给父级扪js-->
<script>
   var heighta=$("#incltialiu li:eq(0) img").height();
   $(".main,.width,#incltialiu").height(heighta) ;
 </script>
 <!--banner将图片的高度赋给父级扪js-->
<!--首页标题点击出现更多分类js-->
 <script>
	$(".titlemore").toggle(function(){
		$(this).parent(".tabtila").siblings(".moresort").show()
		$(this).children("img").attr("src","images/title_692.jpg")
		},function(){
		$(this).parent(".tabtila").siblings(".moresort").hide()
		$(this).children("img").attr("src","images/title_69.jpg")
		})
  </script>
 <!--首页标题点击出现更多分类js-->
</html>
